import request from "@/utils/request";

//获取商品列表
export function getGoodsList(query) {
    return request({
        url: '/api/tbk.goods/material',
        method: 'get',
        params: query
    })
}

//获取商品信息
export function getGoodsInfo(query) {
    return request({
        url: '/api/tbk.goods/getGoodsInfo',
        method: 'get',
        params: query
    })
}

//搜索商品
export function searchGoods(query) {
    return request({
        url: '/api/tbk.goods/optional',
        method: 'get',
        params: query
    })
}

//获取短商品链接
export function getGoodsPuyUrl(query)
{
    return request({
        url: '/api/tbk.goods/goodsCreateUrl',
        method: 'get',
        params: query
    })
}

//获取淘口令
export function getGoodsToken(query)
{
    return request({
        url: '/api/tbk.goods/goodsCreateToken',
        method: 'get',
        params: query
    })
}